package com.landeb.shop.huo.httpRequest;

import com.landeb.shop.huo.bean.BeanFragProducts;
import com.landeb.shop.huo.bean.BeanProductFragLeftLv;
import com.landeb.shop.huo.bean.BeanProductFragRightGv;

import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by blade on 2016/11/8.
 */

public interface FragProductsRequest {

    @GET("Public/goods_cate")
    Observable<BeanProductFragLeftLv> getProductsList();

    @FormUrlEncoded
    @POST("Goods/goods_search")
    Observable<BeanProductFragRightGv> getProductsData(@Field("cid") String cid, @Field("page") String page, @Field("id") String locationId);
}
